<%-- 
    Document   : immoCatalogRef
    Created on : 05.02.2012, 07:50:41
    Author     : alexander
--%>

<%@page import="Classes.Immo"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<link rel="stylesheet" type="text/css" href="betaDesign.css">
<!DOCTYPE html>
<html>
    <title>Ginzt-Immo</title>
    <head>
        
       <div id="container">
        <h1>Ginzt-Immo - Geschenkt ist noch zu teuer</h1>
        <div id="left">        
            <%if (session.getAttribute("sessionUserID")==null) {%>
            
           <form method="post" action="UserManager" name="formular">
		<h5>User-Login:</h5><input name="userAlias">
		<h5>Password:</h5><input name="userPassword" type="password">
                <input type="hidden" name="Quelle" value="UserLogin">
            <input name="login" value="login" type="submit"><p></p>
	<h1><a class="menu" href="createNewUser.jsp">Noch nicht registriert? - Let's go</a></h1>
	</form>
            
            <%}else {%>
            <h5>Hallo <%=(String)session.getAttribute("sessionUserFirstName")%> <%=(String)session.getAttribute("sessionUserLastName")%></h5>
            <h5>Ihre E-Mail-Adresse:</h5> 
            <h5><%=(String)session.getAttribute("sessionUserEMail")%></h5>
        
            <h5>Sie sind online seit:<%=(String)session.getAttribute("createdAT")%></h5>
            
            <br></br>
            
            <form method="post" action="UserManager" name="formular">
                <input type="hidden" name="Quelle" value="UserLogout">
                <input name="logout" value="logout" type="submit"><p></p>
            </form> 
            <h1><a class="menu" href="persHist.jsp">Ihr Benutzerkonto</a></h1>
            <h1><a class="menu" href="myBasket.jsp">Ihr Warenkorb</a></h1>
            <h1><a class="menu" href="addNewImmo.jsp">Immobilie hinzufügen</a></h1>
            <h1><a class="menu" href="index.jsp">zur Hauptseite</a></h1>
            

            
            <h22>Angebote</h22>
            <h1><a class="menu" href="immoCatalog.jsp">Alle Immobilien</a></h1>
            <!--
            <h1><a class="menu" href="addNewCar.jsp">Häuser</a></h1>
            <h1><a class="menu" href="addNewCar.jsp">Wohnungen</a></h1>
            <h1><a class="menu" href="addNewCar.jsp">Grundstücke</a></h1>
             -->

            <h1><a class="menu" href="immoCatalogRent.jsp">Miete</a></h1>
            <h1><a class="menu" href="immoCatalogSale.jsp">Kauf</a></h1>
            
            <h22>Referenzen</h22>
            <h1><a class="menu" href="immoCatalogSold.jsp">Verkaufte Immobilien</a></h1>
            
            <h22>Suche</h22>
            <form method="post" action="SearchManager" name="formular">
                <h1><input name="searchString"/></h1>
                <input name="search" value="Finden" type="submit">
            </form>

            <%}%>
            
        </div>
        <div id="content">
            
            <h1>Immobilien-Details</h1>
            
            <% Immo immo = (Immo)request.getAttribute("Immo");%>

            <h41>Unser Angebot für Sie</h41>
            <h2><%=immo.getImmoHeadline()%></h2>
            <br></br>
            
            <table border="0">
              <tr>
                <th><h41>Kategorie</h41></th>  
                <th><h41>Adresse</h41></th>
                <th><h41>PLZ</h41></th>
                <th><h41>Ort/Stadt</h41></th>
                <th><h41>Bundesland</h41></th>
                <th><h41>Staat</h41></th>

              </tr>
              <tr>
               <th><h4><%=immo.getImmoCategory()%></h4></th>   
                <td><h4><%=immo.getAddress()%></h4></td>
                <td><h4><%=immo.getZipCode()%></h4></td>
                <td><h4>Ort</h4></td>
                <td><h4><%=immo.getState()%></h4></td>
                <td><h4><%=immo.getCountry()%></h4></td>
              </tr>
            </table>
            
            <h4><h41>Immo ID:</h41> <%=immo.getImmoID()%> </h4>
            <h4><h41>Beschreibung:</h41></h4><h4><%=immo.getImmoDescription()%></h4>
            <br></br>

            <table border="0">
              <tr>
                <th><h41>Wohnfläche</h41></th>  
                <th><h41>Grundfläche</h41></th>
                <th><h41>Räume</h41></th>
                <th><h41>Baujahr</h41></th>
              </tr>
              <tr>
                <th><h4><%=immo.getLinvingArea()%> m²</h4></th>   
                <td><h4><%=immo.getSizeOfTheArea()%> m²</h4></td>
                <td><h4><%=immo.getNumberOfRooms()%></h4></td>
                <td><h4><%=immo.getYear()%></h4></td>
              </tr>
            </table>
              
            <br></br>
            <a href="mailto:derbrandl@ovi.com"><h41>Besichtigungstermin vereinbaren</h41></a>
            <br></br>
            
             <% if (immo.getImmoSaleOrRent()==1){ %>
                
                <h41>Monatsmiete: </h41><h4><%=immo.getPrice()%> Euro</h4>
                
            <%} else {%>

            
            
            <h41>Kaufpreis: </h41><h4><%=immo.getPrice()%> Euro</h4>
        
            <%}%>
            
            
            <form method="post" action="BuyManager" name="formular">
                <input type="hidden" name="immoID" value="<%=immo.getImmoID()%>">
                <input type="hidden" name="userAlias" value="<%=(String)session.getAttribute("sessionUserAlias")%>">
                <input type="hidden" name="userPwd" value="<%=(String)session.getAttribute("sessionUserPwd")%>">
                <input type="hidden" name="absender" value="immoDetail.jsp">
                <input name="send" value="in den Warenkorb" type="submit">
            </form>

          
         
            
            
        
        </div>
        
        
        
        
        
        
    </head>
    <body>
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    </body>
</html>
